package com.rxt.util;

import com.rxt.model.domain.FBankUser;
import com.rxt.model.dto.UUserDto;

/**
 * 基于ThreadLocal封装工具类，用于保存和获取当前登录用户 id
 */
public class BankThreadLocal {
    private static ThreadLocal<FBankUser> threadLocal = new ThreadLocal<>();

    public static void set(FBankUser fBankUser) {
        threadLocal.set(fBankUser);
    }

    public static FBankUser get() {
        return threadLocal.get();
    }

    public static void remove() {
        threadLocal.remove();
    }
}
